﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="FormSearchDonVi.aspx.cs"
    Inherits="AIC_PN.FormSearchDonVi" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title></title>
    <link href="css/style.css" rel="Stylesheet" />

    <script type="text/javascript">
        function CloseDialog(value, name) {
            window.returnValue = new Array(value, name);
            window.close()
        }
    </script>

    <style>
        .LogWidth
        {
            width: 400px;
        }
    </style>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <center>
            Tìm kiếm tên đơn vị :
            <asp:TextBox ID="txtSearch" runat="server"></asp:TextBox>
            <asp:Button ID="btnSearch" runat="server" Text="Tìm kiếm" CssClass="cmdBtn" OnClick="btnSearch_Click" />
        </center>
        <br />
        <center>
            <asp:Repeater ID="rptDonVi" runat="server">
                <HeaderTemplate>
                    <table class="LogWidth ListTable">
                        <tr>
                            <th>
                                Danh sách đơn vị tìm thấy
                            </th>
                        </tr>
                </HeaderTemplate>
                <ItemTemplate>
                    <tr>
                        <td>
                            <center>
                                <asp:LinkButton ID="LinkButton1" runat="server" OnClientClick='<%#"CloseDialog("+Eval("ID")+",&#39;"+Eval("TenDV")+"&#39;);"%>'><%#Eval("TenDV")%></asp:LinkButton></center>
                        </td>
                    </tr>
                </ItemTemplate>
                <FooterTemplate>
                    </table></FooterTemplate>
            </asp:Repeater>
        </center>
    </div>
    </form>
</body>
</html>
